//
// Created by deanw on 2025/6/22.
//

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPointer>
QT_FORWARD_DECLARE_CLASS(ImageScene)
QT_FORWARD_DECLARE_CLASS(GraphicsView)

class MainWindow : public QMainWindow {
    Q_OBJECT

public:
    explicit MainWindow(QWidget* parent = nullptr);

protected:
    void        createActionsToolbar();
    void        setupSceneAndViews();
    Q_SLOT void onOpenImage();
    Q_SLOT void updateView();

private:
    QPointer<ImageScene>   m_scene;
    QPointer<GraphicsView> m_view;
    QPointF                m_topLeft;
};

#endif // MAINWINDOW_H